package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.db.basic.BasicMaterials;
import com.ruoyi.system.domain.db.basic.BasicVehicles;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class RepairAccendantDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 维修id */
    private Long repairId;

    /** 汽车 */
    @Excel(name = "汽车")
    private BasicVehicles basicVehicles;

    /** 维修原因 */
    @Excel(name = "维修原因")
    private String reason;

    /** 维修状态 */
    @Excel(name = "维修状态")
    private Integer state;


    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;

    /** 维修人员id */
    private SysUser repairUser;

    /** 维修使用的材料materials */
    private List<MaterialsQuantityDto> materialUseList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
